<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
	</head>
	<body>
		<h1>学生管理系统</h1>
		<table>
			<tr>
				<th>编号</th>
				<th>姓名</th>
				<th>成绩</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${list }" var="user">
				<tr>
					<td>${user.id }</td>
					<td>${user.name }</td>
					<td>${user.score }</td>
					<td>
						<a href="/myweb007/user?method=deleteById&id=${user.id }">删除</a>
						<a href="/myweb007/user?method=findById&id=${user.id }">修改</a>
					</td>
				</tr>
			</c:forEach>
		</table>
		<p><a href="/myweb007/add.jsp">添加学生</a></p>
	</body>
</html>